gtk-builder-tool: Don't break GtkHBox and GtkVBox
authorMatthias Clasen <mclasen@redhat.com>
Mon, 14 Sep 2015 13:38:08 +0000 (09:38 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 14 Sep 2015 15:15:12 +0000 (11:15 -0400)
These classes have different defaults for ::expand than GtkBox,
which is not reflected in the declared default, so we have to
blacklist it.

gtk/gtk-builder-tool.c

index 7ad4733fea0096bea87d53aa46f471834804a452..b5bc8c68551bd6c6ea798cc660e357945a93c756 100644 (file)
@@ -171,6 +171,8 @@ needs_explicit_setting (MyParserData *data,
     { "GtkWidget", "hexpand", 0 },
     { "GtkWidget", "vexpand", 0 },
     { "GtkContainer", "border-width", 0 },
+    { "GtkVBox", "expand", 1 },
+    { "GtkHBox", "expand", 1 },
     { NULL, NULL, 0 }
   };
   gchar *canonical_name;